package com.ys.otms.utils;



import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by Administrator on 2018/9/18.
 */
public class SessionUtil {

    public static Object  getAttribute(HttpServletRequest request,String key){
        HttpSession session = request.getSession();
        Object obj = session.getAttribute(key);
        if (obj ==null){
            return null;
        }
        return obj;
    }
}
